import request from '@/utils/request'
/**
 * 获取评论
 * @param {*} query 
 * @returns 
 */
export function getComments(attractionId) {
  return request({
    url: '/ms/comment/CommentInquireup/ ' + attractionId,
    
    method: 'get',
  })
}
export function getComment(query) {
  return request({
    url: '/ms/comment/attractioncommentinquire',
    params: query,
    method: 'get',
  })
}
/**
 * 添加评论
 * @param {*} query 
 * @returns 
 */
export function addComments(data) {
  return request({
    url: '/ms/comment/commentadd',
    method: 'post',
    data: data
  })
}
/**
 * 修改评论
 * @param {*} query 
 * @returns 
 */
export function updateComments(data) {
  return request({
    url: '/ms/comment/commentupdate',
    method: 'put',
    data: data
  })
}
/**
 * 删除评论
 * @param {*} query 
 * @returns 
 */
export function delComments(commentId) {
  return request({
    url: '/ms/comment/commentdelete/' + commentId,
    method: 'delete'
  })
}
/**
 * 回复评论
 * @param {*} query 
 * @returns 
 */
export function recodeComments(data){
  return request({
    url: '/ms/comment/commentrequest',
    method: 'post',
    data: data
  })
}
export function praiseComments(data){
  return request({
    url: '/ms/comment/commentlove',
    method: 'post',
    data: data
  })
}